import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store';

import {Loading, MessageBox, Alert, Notification, Message} from 'element-ui';

//引入css reset
import 'normalize.css/normalize.css';

//设置懒加载图片
Vue.use(VueLazyLoad, {
  loading: ''
});
// Vue.use(Loading);
// Vue.use(MessageBox);
// Vue.use(Alert);
// Vue.use(Notification);
// Vue.use(Message);

Vue.prototype.$loading = Loading.service;
Vue.prototype.$msgbox = MessageBox;
Vue.prototype.$alert = MessageBox.alert;
Vue.prototype.$confirm = MessageBox.confirm;
Vue.prototype.$prompt = MessageBox.prompt;
Vue.prototype.$notify = Notification;
Vue.prototype.$message = Message;

import VueLazyLoad from 'vue-lazyload';

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')